xm: pass --skipdtd parameter through to 'xm new'
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Mon, 6 Aug 2007 12:39:20 +0000 (13:39 +0100)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Mon, 6 Aug 2007 12:39:20 +0000 (13:39 +0100)
Pass the command line parameter '--skipdtd|-s' through to the actual
'xm new' command.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
tools/python/xen/xm/new.py

index 742c7ff8fde4da1658924f775719c1cb8c3d6eaa..0fb7d8fc58b807e51e6e1c72f94eccbe30559d71 100644 (file)
@@ -75,7 +75,8 @@ def main(argv):
         doc = sxp2xml_inst.convert_sxp_to_xml(config) 
         
         xenapi_create_inst = xenapi_create()
-        vm_refs = xenapi_create_inst.create(document = doc)
+        vm_refs = xenapi_create_inst.create(document = doc,
+                                            skipdtd=opts.vals.skipdtd)
     else:       
         make_unstarted_domain(opts, config)